import {
  imageUrl
} from "../../utils/imageutil"
Component({
  externalClasses: ["contact-class"],
  properties: {
    img: {
      type: String,
      value: imageUrl + '/index/Slice1080_1.png'
    },
    title: {
      type: String,
      value: ''
    },
    path: {
      type: String,
      value: ''
    },
    src: {
      type: String,
      value: ''
    },
    is_card: {
      type: Boolean,
      value: false
    }
  },


  data: {
    x: 250,
    y: 250,
  },

  pageLifetimes: {
    show: function () {
      var that = this;
      wx.getSystemInfo({
        success: function (res) {
          that.setData({
            x: res.windowWidth - 50,
            y: res.windowHeight / 2 + 50
          })
        },
      })
    },
  },

  /**
   * 组件的方法列表
   */
  methods: {
    handleContact(e) {
      // this.triggerEvent('bottomTap',e.detail) 
    },
    contact() {
      getApp().contact()
    },
  }
})